
import machine, time

cmd = cmd.split()

if len(cmd) == 1:
    print("Usage: blink [pin]")
else:
    status = True
    pin = machine.Pin(int(cmd[1]), machine.Pin.OUT)
    while True:
        try:
            pin.value(status)
            status = not status
            time.sleep(0.5)
        except:
            break
